/**
 * 
 */
package com.et114.modules.products.supplier.dao;

import com.et114.components.simpletable.dao.SimpleTableDAOImpl;
import com.et114.components.simpletable.DataList;
import com.et114.modules.products.supplier.vo.ProSuppliers;

import java.util.*;
/*
 * @author guanhw
 */
public class SupplierDao extends SimpleTableDAOImpl {
	
	@ SuppressWarnings ( "unchecked" )
	public List< ProSuppliers > querySuppliersList( ProSuppliers vo ) throws Exception { 
		return queryList( vo , "getProSuppliersNpage"  ) ; 
	}
	
	public DataList  querySuppliers( ProSuppliers vo ) throws Exception {
		return queryListDataList( vo , "getProSuppliers" ) ; 
	}
	
	public Long saveSupplier( ProSuppliers vo ) throws Exception { 
		return ( Long )insert ( vo , "insertProSuppliers" ) ;
	}
	
	public void updateSupplier( ProSuppliers vo ) throws Exception {  
		update ( vo , "updateProSuppliers" ) ; 
	}
	
	public void removeSupplier( Long id ) throws Exception  {
		delete ( id , "removeSupplier" ) ; 
	}
	
	public ProSuppliers getProSupplierById( Long sid  ) throws Exception {
		return ( ProSuppliers )load ( sid , "getProSupplierById" ) ; 
	}
	
}
